import  requests
try:
    url={"http://www.bspider.top/static/yh31/images/202103182012577973.gif",
         "http://www.bspider.top/static/yh31/images/202103302105360079.gif"}
    for url in url:
        r=requests.get(url)
        dir="d://"
        file_name=url.split("/")[-1:][0]
        file_name=dir+file_name
        with open(file_name,"wb")as f:
            f.write(r.content)
except Exception as err:
        print(err)
